﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>IF</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body><PRE style="BACKGROUND: #f1f1f1"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 11pt; COLOR: black"><FONT ><FONT><FONT size=3><FONT style="BACKGROUND-COLOR: #ffff00">khác 0 là đúng , bằng 0 là sai<o:p></O:P></FONT></FONT></FONT></FONT></SPAN></B></PRE>
<P>
<TABLE class=MsoNormalTable 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f1f1f1; BORDER-LEFT: medium none; WIDTH: 317.95pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid #AAAAAA .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 3.75pt 3.75pt 3.75pt 2.9pt" 
cellSpacing=0 cellPadding=0 width=424 border=1>
  
  <TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
    <TD 
    style="BORDER-RIGHT: #aaaaaa 1pt solid; PADDING-RIGHT: 3.75pt; BORDER-TOP: #aaaaaa 1pt solid; PADDING-LEFT: 2.9pt; PADDING-BOTTOM: 3.75pt; BORDER-LEFT: #aaaaaa 1pt solid; PADDING-TOP: 3.75pt; BORDER-BOTTOM: #aaaaaa 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid #AAAAAA .5pt" 
    vAlign=top>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>#!/usr/bin/python<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p><FONT 
      size=3></FONT></O:P></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>var1 
      = 100<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>if 
      var1:<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>print "1 - Got a true 
      expression value"<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>print 
      var1<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><o:p><FONT 
      size=3></FONT></O:P></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>var2 
      = 0<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>if 
      var2:<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>print "2 - Got a true 
      expression value"<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>print 
      var2<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>print 
      "Good bye!"<o:p></O:P></FONT></FONT></SPAN></P></TD></TR></TABLE></P>
<P class=MsoNormal 
style="BACKGROUND: white; MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto"><SPAN 
style="FONT-SIZE: 6.5pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"><FONT size=3><FONT>This 
will produce following result:<o:p></O:P></FONT></FONT></SPAN></P>
<P>
<TABLE class=MsoNormalTable 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f1f1f1; BORDER-LEFT: medium none; WIDTH: 317.95pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid #AAAAAA .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 3.75pt 3.75pt 3.75pt 2.9pt" 
cellSpacing=0 cellPadding=0 width=424 border=1>
  
  <TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
    <TD 
    style="BORDER-RIGHT: #aaaaaa 1pt solid; PADDING-RIGHT: 3.75pt; BORDER-TOP: #aaaaaa 1pt solid; PADDING-LEFT: 2.9pt; PADDING-BOTTOM: 3.75pt; BORDER-LEFT: #aaaaaa 1pt solid; PADDING-TOP: 3.75pt; BORDER-BOTTOM: #aaaaaa 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid #AAAAAA .5pt" 
    vAlign=top>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>1 
      - Got a true expression value<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>100<o:p></O:P></FONT></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3><FONT>Good 
      bye!<o:p></O:P></FONT></FONT></SPAN></P></TD></TR></TABLE></P><PRE style="BACKGROUND: #f1f1f1"><o:p><FONT >&nbsp;</FONT></O:P></PRE></body>
</html>
